package com.yiyuan.app.entity.result;

import com.guaike.core.entity.annotation.DictConvert;
import com.yiyuan.app.entity.constant.BusinessDictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: zhangxilin
 * @Date: 2024/5/31
 */
@ApiModel("签到页面实体")
@Data
public class SignVO implements Serializable {
    @ApiModelProperty("ruleId,签到时传")
    private Long ruleId;

    @ApiModelProperty("签到类型（1：新用户签到，2：连续签到）")
    @DictConvert(code = BusinessDictCodeConstant.M_PRIZE_ACTION)
    private Integer action;

    @ApiModelProperty("签到名称")
    private String name;

    @ApiModelProperty("签到总天数")
    private Integer totalDays;

    @ApiModelProperty("签到天数/连续签到天数")
    private Integer signDays = 0;

    @ApiModelProperty("是否已签到")
    private Boolean alreadySign = Boolean.FALSE;

    @ApiModelProperty("签到配置list")
    private List<BaseSignVO> signVOS;

}
